package com.quick.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.quick.system.mapper.DutyRoomMapper;
import com.quick.system.domain.DutyRoom;
import com.quick.system.service.IDutyRoomService;

/**
 * 值班室Service业务层处理
 * 
 * @author quick
 * @date 2025-01-03
 */
@Service
public class DutyRoomServiceImpl implements IDutyRoomService 
{
    @Autowired
    private DutyRoomMapper dutyRoomMapper;

    /**
     * 查询值班室
     * 
     * @param id 值班室主键
     * @return 值班室
     */
    @Override
    public DutyRoom selectDutyRoomById(Long id)
    {
        return dutyRoomMapper.selectDutyRoomById(id);
    }

    /**
     * 查询值班室列表
     * 
     * @param dutyRoom 值班室
     * @return 值班室
     */
    @Override
    public List<DutyRoom> selectDutyRoomList(DutyRoom dutyRoom)
    {
        return dutyRoomMapper.selectDutyRoomList(dutyRoom);
    }

    /**
     * 新增值班室
     * 
     * @param dutyRoom 值班室
     * @return 结果
     */
    @Override
    public int insertDutyRoom(DutyRoom dutyRoom)
    {
        return dutyRoomMapper.insertDutyRoom(dutyRoom);
    }

    /**
     * 修改值班室
     * 
     * @param dutyRoom 值班室
     * @return 结果
     */
    @Override
    public int updateDutyRoom(DutyRoom dutyRoom)
    {
        return dutyRoomMapper.updateDutyRoom(dutyRoom);
    }

    /**
     * 批量删除值班室
     * 
     * @param ids 需要删除的值班室主键
     * @return 结果
     */
    @Override
    public int deleteDutyRoomByIds(Long[] ids)
    {
        return dutyRoomMapper.deleteDutyRoomByIds(ids);
    }

    /**
     * 删除值班室信息
     * 
     * @param id 值班室主键
     * @return 结果
     */
    @Override
    public int deleteDutyRoomById(Long id)
    {
        return dutyRoomMapper.deleteDutyRoomById(id);
    }
}
